<template>
  <div class="bg-up">
    <Header />
    <div class="banner">
      <div class="up-area">
        <div class="video-area">
          <div class="video-container"></div>
          <div class="video-interactive">
            <div class="text-box">
              <div class="text">
                <span class="iconfont icon-like-heart"></span>
                <span>126.w</span>
              </div>
              <div class="text">
                <span class="iconfont icon-share"></span>
                <span>分享</span>
              </div>
              <div class="text">
                <span class="iconfont icon-dislike"></span>
                <span>不感兴趣</span>
              </div>
            </div>
            <div class="input-box">
              <ElSwitch />
              <input class="input" placeholder="发条弹幕吧~" type="text" />
              <div class="login">登录</div>
              <button class="btn">发送</button>
            </div>
          </div>
          <div class="video-info">
            <div class="title">
              农村上山采野生菇子，扒开杂草发现一片菇，阿蛮直呼比捡宝还开心
            </div>
            <div class="text">播放96.8w发布时间：2021年06月09日</div>
            <div class="author-box">
              <div
                class="img"
                style="
                  background-image: url(https://tx2.a.kwimgs.com/uhead/AB/2021/05/16/19/BMjAyMTA1MTYxOTU0NDZfMTQyOTEyNjU5OF8yX2hkMTI0XzU3Mw==_s.jpg);
                "
              ></div>
              <span class="author">苗家阿蛮</span>
              <button class="follow">+关注</button>
            </div>
          </div>
        </div>
        <div class="recommend-area">
          <h3 class="recommend-title">推荐视频</h3>

          <ul class="recommend-list">
            <li class="recommend-list-item">
              <div
                class="recommend-item-img-box"
                style="
                  background-image: url(https://tx2.a.kwimgs.com/upic/2021/09/09/17/BMjAyMTA5MDkxNzEzMTNfMTQwMjIyNDUzNV81Njg2MTE4NTU5OV8xXzM=_B76e5201a7f3940f8d2c8c2dcd92d9784.jpg?tag=1-1638404385-xpcwebdetail-0-a23s7xhm8e-47a446feefd3eaba&clientCacheKey=3xaxbts4iivjvze.jpg&di=71585418&bp=10004);
                "
              >
                <div class="recommend-item-duration">00:00</div>
              </div>
              <div class="recommend-item-detail">
                <div class="recommend-item-detail-title">
                  有人要拜师学做油酥烧饼，三丰心里有点没底，做上一锅试试手美食教程油酥焙子
                </div>
                <div class="recommend-item-detail-playcount">
                  <span class="iconfont icon-play"></span>
                  <span>播放量：8.5w </span>
                </div>
              </div>
            </li>
          </ul>
        </div>
      </div>
    </div>
  </div>
  <div class="down-area">
    <h3>&nbsp;评论</h3>
    <div class="user">
      <div
        class="img"
        style="
          background-image: url(https://ali2.a.kwimgs.com/uhead/AB/2021/10/01/00/BMjAyMTEwMDEwMDUzMTlfNjc0NTU1NTdfMl9oZDc5OV84MTI=_s.jpg);
        "
      ></div>
      <div class="comment-box">
        <textarea class="comment" placeholder="请说点什么..."></textarea>
        <div class="cancel">取消</div>
        <button class="post">发表</button>
      </div>
    </div>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'

export default defineComponent({
  name: 'LongVideo',
})
</script>

<script lang="ts" setup>
import { ref } from 'vue'
import { ElSwitch } from 'element-plus'
import Header from '@/components/smallJcHeader/Header.vue'
</script>
<style lang="less" scoped>
@import url(//at.alicdn.com/t/font_2980998_4hz3lxwzghs.css);

.bg-up {
  background-color: #222;
}
.banner {
  padding-top: 130px;
  margin: 0 auto;
  width: 1100px;
  box-sizing: border-box;
  // border: 1px solid;
}
.up-area {
  display: flex;
  justify-content: space-between;
  height: 665px;
}
.video-area {
  width: 70%;
  // border: 1px solid;
}
.video-container {
  height: 500px;
  border: 1px solid;
}
.video-interactive {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
  line-height: 40px;
  background-color: #1c1c1c;
  .text-box {
    display: flex;
    align-items: center;
    width: 270px;
    font-size: 15px;
    .text {
      margin-left: 15px;
    }
  }
  .input-box {
    margin-right: 15px;
    height: 30px;
    display: flex;
    align-items: center;
    .input {
      width: 200px;
      height: 22px;
      outline: none;
      margin-left: 10px;
      padding-left: 10px;
      border-radius: 15px 0 0 15px;
      background-color: #141414;
      color: #fff;
    }
    .login {
      display: none;
    }
    .btn {
      width: 70px;
      height: 28px;
      color: #fff;
      border: none;
      background-color: #282828;
      border-radius: 0 15px 15px 0;
    }
  }
}
.video-info {
  padding-top: 10px;
  height: 100px;

  .title {
    font-size: 20px;
  }
  .text {
    font-size: 12px;
    margin: 5px 0;
  }
  .author-box {
    display: flex;
    align-items: center;
    .img {
      width: 30px;
      height: 30px;
      border-radius: 50%;
      background-position: 50%;
      background-size: cover;
    }
    .author {
      padding: 15px;
    }
    .follow {
      width: 60px;
      height: 25px;
      border-radius: 12px;
      background-color: #fe3666;
      border: none;
    }
  }
}

.recommend-area {
  box-sizing: border-box;
  width: 28%;
  height: 100%;
  // border: 1px solid;
}
.recommend-title {
  color: hsl(0deg 0% 100% / 90%);
}
.recommend-list {
  padding: 0;
  margin: 0;
  height: 90%;

  box-sizing: border-box;
  list-style: none;
  overflow: auto;
}
.recommend-list-item {
  // border: 1px solid;
  display: flex;
  padding-bottom: 20px;
}
.recommend-item-img-box {
  position: relative;
  width: 125px;
  height: 80px;
  background-position: 50%;
  background-size: cover;
  flex-shrink: 0;
}

.recommend-item-duration {
  position: absolute;
  right: 3px;
  bottom: 3px;
  padding: 3px 5px;
  font-size: 12px;
  color: #fff;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.4);
}

.recommend-item-detail {
  height: 80px;
  padding-left: 5px;
}
.recommend-item-detail-title {
  padding-top: 5px;
  font-size: 13px;
  overflow: hidden;
  color: hsl(0deg 0% 100% / 90%);
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.recommend-item-detail-playcount {
  font-size: 12px;
  margin-top: 28px;
  color: #999;
}

.down-area {
  width: 1100px;
  margin: 0 auto;
  .user {
    display: flex;

    width: 100%;
    .img {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      background-position: 50%;
      background-size: cover;
    }
    .comment-box {
      position: relative;
      margin-left: 15px;
      padding: 10px;
      width: 62%;
      height: 120px;
      border-radius: 10px;
      background-color: #f8f8f8;
      font-size: 14px;
      .comment {
        width: 100%;
        height: 80px;
        border: none;
        outline: none;
        resize: none;
        background-color: transparent;
      }
      .cancel {
        position: absolute;
        right: 80px;
        bottom: 14px;
        color: #999;
      }
      .post {
        position: absolute;
        right: 20px;
        bottom: 10px;
        width: 50px;
        height: 25px;
        color: #fe3666;
        border-radius: 25px;
        border: 1px solid #fe3666;
      }
    }
  }
}
</style>
